<?php
$this->load->view('includes/header');
?>
<section id="LeapMainWrapper">
    
    <div id="subheader">

        <h2>Settings password</h2>
        <div class="submitWrapper">
            <div class="submit_button">
                <input type="submit" value="Save changes" class="button" onclick="formSubmit()">
            </div>

            <div class="clearfix"></div>
        </div>
        <div class="clear"></div>
    </div>
    <div class="col">

        <ul class="settings_tab">
            <li ><a href="settings">Profile</a></li> 
            <li class="selected"><a class="active" href="settings_password">Password</a></li> 
            <li ><a  href="notifications">Notifications</a></li> 
            <li ><a  href="sharing">Sharing</a></li>
        </ul>

    </div>
    <div class="col settings">
        <form class="profileInfos" method="post" action="submit_password" autocomplete="off">
        <?php    if(@$incorrect){
                echo "<p>".$incorrect."</p>";
            }
            ?>
            <!-- site stuff -->	
            <div class="controlgroup margin">
                <h3 class="faded">
                    Password
                </h3>

                <div class="controls pass_settings" >

                    <div class="arrow"></div>



                    <div class="space">&nbsp;</div>
                    <div class="checkinfo">
                        <label class="smalllabel" for="username">New Password</label>
                        <div class="showbox"><input type="password"  name="newPassword" id="newPassword" class="full"></div>
                    </div>
                    <div class="clearfix"></div>

                    <div class="space">&nbsp;</div>
                    <div class="checkinfo">
                        <label class="smalllabel" for="username">Password confirmation</label>
                        <div class="showbox"><input type="password"  name="PasswordConf" id="PasswordConf" class="full"></div>
                    </div>
                    <div class="clearfix"></div> 

                </div>

            </div>


            <div class="clearfix"></div>
        </form>
    </div>
</section>
<script>
    function formSubmit()
    {
        $("form").submit();
    }
</script>
<?php

$this->load->view('includes/footer');
?>